import http from '../../utils/http'
const URL = 'http://192.168.221.241:8005'

export default {
    findAllRole(obj) {
        return http({
            url: `${URL}/service_setting/role/findAllRole`,
            method: 'post',
            data: {
                roleName: obj.name
            }
        })
    },
    InsertRole(obj) {
        return http({
            url: `${URL}/service_setting/role/insertRole`,
            method: 'post',
            data: {
                ...obj
            }
        })
    },
    DeleteRole(roleId) {
        return http({
            url: `${URL}/service_setting/role/deleteRole`,
            method: 'get',
            params: { roleId }
        })
    },
}